import {Component, OnInit} from '@angular/core';
import {HttpClient} from '@angular/common/http';

@Component({
  selector: 'app-dashboard',
  templateUrl: './dashboard.component.html',
  styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit {

  information = [];

  constructor(
    private http: HttpClient
  ) {
  }

  ngOnInit() {
    this.getDashboardInformation();
  }

  getDashboardInformation() {
    this.http.get<any[]>('/api/initialization/getDashboardInformation').subscribe(res => {
      this.information = res;
    });
  }

}
